/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.qx.entity;

import java.util.List;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author zequs
 * @version 2017-08-23
 */
public class QxMatchHistory extends DataEntity<QxMatchHistory> {
	
	private static final long serialVersionUID = 1L;
	private String teamid;		// 球队id
	private String teamName;		// 队名
	private Integer wheel;		// 场次
	private Integer homeType;		// 主客场0：主场，1客场
	private Integer result;		// 输赢结果，1赢，2平，3输
	private Integer normalUnusual;		// 普通
	private Integer extremelyUnusual;		// 极端异常
	private Integer stableException;		// 稳定异常
	private String leagueid;           //联赛id
	private Boolean islimit;
	private List<QxMatchHistory> histories;
	
	
	//非数据库数据
    private String daytime;
    private List<Integer> results;  //输赢查询
     
	public QxMatchHistory() {
		super();
	}

	public QxMatchHistory(String id){
		super(id);
	}

	@NotNull(message="球队id不能为空")
	public String getTeamid() {
		return teamid;
	}

	public void setTeamid(String teamid) {
		this.teamid = teamid;
	}
	
	@Length(min=0, max=50, message="队名长度必须介于 0 和 50 之间")
	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}
	
	@NotNull(message="场次不能为空")
	public Integer getWheel() {
		return wheel;
	}

	public void setWheel(Integer wheel) {
		this.wheel = wheel;
	}
	
	@NotNull(message="主客场0：主场，1客场不能为空")
	public Integer getHomeType() {
		return homeType;
	}

	public void setHomeType(Integer homeType) {
		this.homeType = homeType;
	}
	
	@NotNull(message="输赢结果，1赢，2平，3输不能为空")
	public Integer getResult() {
		return result;
	}

	public void setResult(Integer result) {
		this.result = result;
	}
	
	public Integer getNormalUnusual() {
		return normalUnusual;
	}

	public void setNormalUnusual(Integer normalUnusual) {
		this.normalUnusual = normalUnusual;
	}
	
	public Integer getExtremelyUnusual() {
		return extremelyUnusual;
	}

	public void setExtremelyUnusual(Integer extremelyUnusual) {
		this.extremelyUnusual = extremelyUnusual;
	}
	
	public Integer getStableException() {
		return stableException;
	}

	public void setStableException(Integer stableException) {
		this.stableException = stableException;
	}

    public String getDaytime() {
        return daytime;
    }

    public void setDaytime(String daytime) {
        this.daytime = daytime;
    }

    public String getLeagueid() {
        return leagueid;
    }

    public void setLeagueid(String leagueid) {
        this.leagueid = leagueid;
    }

    public List<Integer> getResults() {
        return results;
    }

    public void setResults(List<Integer> results) {
        this.results = results;
    }

	public Boolean getIslimit() {
		return islimit;
	}

	public void setIslimit(Boolean islimit) {
		this.islimit = islimit;
	}

	public List<QxMatchHistory> getHistories() {
		return histories;
	}

	public void setHistories(List<QxMatchHistory> histories) {
		this.histories = histories;
	}
	
}